package com.anc.web.main;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * applicaiton 启动类通用父类
 * see DataSourceAutoConfiguration 阻止springboot自动配置数据源
 * @author Anc
 * @date 2022/7/01
 */
@EnableDiscoveryClient
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//@EnableSwagger2
@ComponentScan(basePackages = {"com.anc.**"})
@ImportResource({"classpath*:spring/spring-*.xml"})
public abstract class BaseSpringBootApplication {
}
